home *** CD-ROM | disk | FTP | other *** search
- onClipEvent(enterFrame){
- if(move == 0)
- {
- if(lock)
- {
- this._x += Xstep;
- Ystep = 0;
- Xstep = 0;
- if(Key.isDown(37) and _root.alive == "yes")
- {
- if(this.rising == true)
- {
- Xstep = -15;
- }
- else
- {
- Xstep = -8;
- }
- Ystep = 0;
- if(this.rising == false)
- {
- this.gotoAndStop("left");
- this.mario.play();
- }
- }
- else if(Key.isDown(39) and _root.alive == "yes")
- {
- if(this.rising == true)
- {
- Xstep = 15;
- }
- else
- {
- Xstep = 8;
- }
- Ystep = 0;
- if(this.rising == false)
- {
- this.gotoAndStop("right");
- this.mario.play();
- }
- }
- else if(Key.isDown(40) and _root.alive == "yes")
- {
- if(_root.direction == 0)
- {
- this.gotoAndStop("sitleft");
- }
- else
- {
- this.gotoAndStop("sitright");
- }
- }
- else
- {
- this.mario.gotoAndStop(1);
- }
- }
- }
- }
-